var App =  getApp();
Page({
    data: {
        goodsList:[],
        orderType:''
    },
    onLoad: function(options){
        const _this = this
        var goodsList = []
        this.setData({ orderType: options.orderType,})
        if(options.orderType == 'doc'){
            App.globalData.docList.forEach(element => {
                element.num = element.num?element.num:1
            });
            goodsList = App.globalData.docList
        }else{
            App.globalData.imageList.forEach(element => {
                element.num = element.num?element.num:1
            });
            goodsList = App.globalData.imageList
        }
        _this.setData({ goodsList: goodsList, options: options })
        
    },

});